/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package puzzle8;

import controller.DefaultController;
import model.Puzzle8Model;
import model.Puzzle8RobotModel;
import model.Puzzle8SolverModel;
import view.SimpleView;

/**
 *
 * @author comercio
 */
public class Main {
    public static void main(String[] args) {
        //crea el controlador
        DefaultController control = new DefaultController();
        
        //crea el puzzle
        Puzzle8Model puzzle = new Puzzle8Model();
        control.addPuzzleModel(puzzle);
        
        //crea el solver
        Puzzle8SolverModel solver = new Puzzle8SolverModel();
        control.addPuzzleSolver(solver);
        //crea el robot
        Puzzle8RobotModel robot = new Puzzle8RobotModel(puzzle,solver);
        control.addRobotModel(robot);
        
        //crea la vista
        SimpleView view = new SimpleView(control);
        view.setVisible(true);
        control.addView(view);
        
      
        
   
    }
            
  
        
        
   
    
}
